entry=''
until [ "$entry" = 'end' ]
do
    read -p 'Enter a word: ' entry
    echo $entry
done